package org.flexthinker.binding.value
{
    /**
     * Interface to be implemented by classes that listen for the commit and revert
     * events fired by a <code>CommitTriger</code>.
     */
    public interface CommitTriggerListener
    {
        function commit():void;

        /**
         * Reverts to the original value.
         * @param toSource  Optional argument.
         *          The new object containing the property being observed.
         *          If set, it will become the new object to be watched and the old object
         *          will be removed.
         */
        function revert(toSource:Object=null):void;
    }
}